home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
zapem-0.000
/
zapem-0
/
zapem
/
player.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-22
|
795b
|
41 lines
#ifndef PLAYER_H
#define PLAYER_H
/* requires sprite.h, soul.h, weapon.h , entity.h */
#include "action.h"
const int NUMLIVES=3;
enum rail {FRONT,REAR,PORT,STARBOARD};
class
Player : public Entity
{
private:
action dir;
animList animLeft, animRight, animStr, animExp;
Control* controller;
Weapon* weapon[STARBOARD+1];
void init(void);
void copy(const Player& p);
void moveWeapons(void);
public:
Player();
Player(const Player& p);
Player& operator=(const Player& p);
void setControl( Control* c );
void setWeapon( Weapon* w, rail r);
void setDir(action d){dir=d;}
void explode(void);
void fire(void);
/* Tests whether mounted weapons have hit anything */
bool hit( const Sprite& e);
void control(void);
action getDir(void) const {return dir;}
};
#endif